import axios from "axios";

export const get_code = function (name) {
    return axios.get('/xueqiu/query/v1/suggest_stock.json', {
        params: {
            "q": name
        }
    })
}
export const get_one_day = function (code) {
    return axios.get('/stock/v5/stock/chart/minute.json', {
        params: {
            "symbol": code,
            "period": "1d"
        }
    })
}
export const get_min = function (code) {
    return axios.get('/stock/v5/stock/history/trade.json', {
        params: {
            "symbol": code,
            "count": 100
        }
    })
}